package com.example.service;

import com.example.entity.CarEntity;
import com.example.interceptor.CarsPage;
import com.example.interceptor.Page;

import java.math.BigDecimal;
import java.util.List;

public interface CarService {
    void insertCar(CarEntity carEntity);
    CarEntity getCar(long id);
    //可以判断是否存在bootid，若有则不能删除，抛出捕获的异常
    void deleteCar(long id);
    int getCarAndBootNum();
    List<CarEntity> getCars();

    CarsPage getCarsByName(BigDecimal price, Page page);
}
